import axios from '../utils/http'; // 导入http中创建的axios实例
import { Base64 } from '../utils/base';
let baseObj = new Base64()
const base_url = process.env.BASE_API;
const inter_url = '/proxy/cam/proxy/common?api='
const outAPi = {
  // 新增车辆事故表，事故跟踪单新增接口
  addnew(params) {
    let url = 'CustomerSolicitFacade-addnew'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params);
  },

  // 获取外服登记单（事故跟踪单）列表
  queyCarAccidentTrackingBill(params) {
    let url = 'CustomerSolicitFacade-queyCarAccidentTrackingBill'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params);
  },

  // 事故跟踪单详情
  queyCarAccidentTrackingBillById(params) {
    let url = 'CustomerSolicitFacade-queyCarAccidentTrackingBillById'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params);
  },
   // 获取事故跟踪单外服登记人员接口
  getAccidentOrgPsnList(params) {
    let url = 'CustomerSolicitFacade-getAccidentOrgPsnList'
    return axios.post(`${base_url}${inter_url}${baseObj.encode(url)}`, params);
  },
}

export default outAPi;
